<script setup lang="ts" name="App">
    import Person from './components/Person.vue';
    import {ref} from "vue"

    let title=ref()
    let ren=ref()
    const showLog=()=>{
        console.log(title.value);
        console.log(ren.value);
        
    }
</script>

<template>
    <h2 ref="title">你好</h2>
    <button @click="showLog">点我输出h2</button>
    <Person ref="ren"/>
</template>

<style scoped>

</style>
